export default {
  // 手机号校验
  isMobile: str =>{
    if (str == null || str == "") return false;
    var result = str.match(/^((\(\d{2,3}\))|(\d{3}\-))?((13\d{9})|(15\d{9})|(18\d{9}))$/);
    if (result == null) return false;
    return true;
  },
}